Skip to content

Conversation

@WildCard65
Copy link

This small pull request fixes the issue #1113 by doing 2 things:

  1. Actually pass the library name being searched for to find_library
  2. Use unique variables when invoking find_library in order to avoid any shenanigans older CMake versions may pull (unlikely, but better to be safe than sorry).

Copilot AI review requested due to automatic review settings July 21, 2025 20:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the find_link_library CMake function where the library name parameter was not being properly passed to find_library, and improves variable naming to avoid potential conflicts across multiple invocations.

  • Corrects the find_library call to actually use the libname parameter instead of treating it as a literal string
  • Updates variable names to be unique per library to prevent potential CMake variable collision issues

@daanx daanx changed the base branch from main to dev November 6, 2025 01:01
@daanx daanx changed the base branch from dev to main November 6, 2025 01:01
@WildCard65
Copy link
Author

@microsoft-github-policy-service agree

@daanx
Copy link
Collaborator

daanx commented Nov 6, 2025

Hi @WildCard65 , thanks for the fix, but can you make this PR against the dev branch ? (I tried to change the base but it would pull in all other kinds of changes). If this is not easy, I can apply it manually myself as well -- let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants